
<c:if test="${not empty sessionScope.userTimelineDTO.userTimelineRowList}">
<table class="gridtable"  style="box-shadow: 5px 5px 8px #888888;">	
	<tr class="fillgray">
			<td rowspan="2" class="border bold">Sl No</td>
			<td rowspan="2" class="border bold">Name</td>
			<td rowspan="2" class="border bold">Track</td>
			<td class="heading fillgray" align="center" >Saturday</td>
			<td class="heading  fillgray" align="center" >Sunday</td>
			<td class="heading" align="center">Monday</td>
			<td class="heading" align="center">Tuesday</td>
			<td class="heading" align="center">Wednesday</td>
			<td class="heading" align="center">Thursday</td>
			<td class="heading" align="center">Friday</td>
		</tr>
		<tr>
		<c:forEach var="nextDay" items="${sessionScope.userTimelineDTO.nextSevenDaysList}" varStatus="dayCount">
			<td class="fillgray" style="" class=" <c:if test="${dayCount.index < 2 }"></c:if>">${nextDay}</td>
		</c:forEach>
		</tr>
	
	
	<c:if test="${not empty sessionScope.userTimelineDTO.userTimelineRowList}">
		<c:forEach var="userTimelineRow" items="${sessionScope.userTimelineDTO.userTimelineRowList}" varStatus="loop">
			
		<tr>
		<td align="center"> ${loop.index + 1}</td>
			<td align="center">
				${userTimelineRow.userName}
			</td>
			<td align="center">
			 <c:set var="primaryTrackId" value="${userTimelineRow.primaryTrack}" />
			${sessionScope.track[primaryTrackId].name}
			</td>
			<c:forEach var="userTimelineGrid" items="${userTimelineRow.userTimelineGridList}" varStatus="dayCount">
				<td class="grid_filler_general_shift <c:if test="${dayCount.index < 2 }"> fillWeekEnd </c:if><c:if test="${(userTimelineGrid.shiftName  ne 'Vacation') and (userTimelineGrid.shiftName  ne 'Comp off')}"> <c:if test="${not empty userTimelineGrid.timeLineId}">filllightgray</c:if></c:if>" <c:if test="${(userTimelineGrid.shiftName  eq 'Vacation') or (userTimelineGrid.shiftName  eq 'Comp off')}">style="background-color:#ff8888"</c:if>>
					<c:if test="${dayCount.index < 2}">
						<c:if test="${(sessionScope.config.defaultShift ne  userTimelineGrid.shiftId) or  (userTimelineRow.primaryTrack ne  userTimelineGrid.trackId)}">
							${userTimelineGrid.trackName}<br>${userTimelineGrid.shiftName}
						</c:if>
					</c:if>
					<c:if test="${dayCount.index >= 2}">
						${userTimelineGrid.trackName}<br/>
						${userTimelineGrid.shiftName}
					</c:if>
					<input id="timeLine${loop.index}${dayCount.index}" value="${userTimelineGrid.timeLineId}" type="hidden"/>
				</td>
			</c:forEach>
			
		</tr>
		</c:forEach>
	</c:if>
	
	
	
	
</table>
</c:if>


